// components/navigateBar/navigateBar.js
const app = getApp()
Component({
  
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String,
      value: '',
    },
    isShowBackIcon: {
      type: Boolean,
      value: '',
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    systemInfo: 0,
    navBarHeight: 0,
  },


  /**
   * 组件的方法列表
   */
  methods: {
    goBack() {
      wx.navigateBack({

      })
    }
  },
  ready() {
    let that = this
    that.setData({
      systemInfo: app.globalData.stystemInfo,
      navBarHeight: app.globalData.stystemInfo.statusBarHeight + 12
    })
    wx.createSelectorQuery().in(this).select('#navBar').boundingClientRect(function (res) {
      that.triggerEvent('getNavBarHeight', res.height)
    }).exec()
  }
})